Skip to content

chore: move to pyproject and poetry #2471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 26, 2021
Merged

chore: move to pyproject and poetry #2471

merged 13 commits into from
Nov 26, 2021

Conversation

Panaetius
Copy link
Member

@Panaetius Panaetius commented Nov 17, 2021

closes #2405

Moves all configuration to pyproject.toml
Moves building/dependency management to poetry
Gets rid of setup.py
Updates Github Actions to work with poetry

Also:
Adds caching of python dependencies between runs in the github actions, to speed things up a bit (and reduce bandwidth)
Reduces exponential backoff in our requests wrapper so the worst case is not 17 minutes but 6seconds.
Formatter the github actions to have consistent indent
Added some missing init.py (poetry threw warnings when building)

Note:
version.py.tmpl is gone, poetry-dynamic-versioning patches version.py directly. 0.0.0 is just a placeholder. The way it works is that before a poetry build or poetry install, it patches version.py with the correct version, and after in un-patches it again. This has the downside that the version locally is always 0.0.0, only renku installed in the env and published packages have the version actually set. I didn't notice any issues with running tests or commands with this, so I think it's fine.

@Panaetius Panaetius force-pushed the 2405-pyproject.toml branch 2 times, most recently from 3f17d46 to cc3e002 Compare November 17, 2021 18:28
@Panaetius Panaetius force-pushed the 2405-pyproject.toml branch 2 times, most recently from 6018ff5 to e3efaaf Compare November 18, 2021 09:12
@Panaetius Panaetius force-pushed the 2405-pyproject.toml branch 2 times, most recently from 779294f to df3007b Compare November 18, 2021 09:50
@Panaetius Panaetius marked this pull request as ready for review November 18, 2021 16:08
@Panaetius Panaetius requested a review from a team as a code owner November 18, 2021 16:08
@Panaetius Panaetius marked this pull request as draft November 18, 2021 16:09
@Panaetius Panaetius force-pushed the 2405-pyproject.toml branch 13 times, most recently from 90786fe to 92d9c24 Compare November 19, 2021 10:53
@Panaetius Panaetius marked this pull request as ready for review November 19, 2021 11:55
@Panaetius
Copy link
Member Author

vigsterkr
vigsterkr previously approved these changes Nov 24, 2021
Copy link
Contributor

@vigsterkr vigsterkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Panaetius Panaetius enabled auto-merge (squash) November 24, 2021 14:08
@Panaetius Panaetius requested a review from vigsterkr November 25, 2021 07:47
vigsterkr
vigsterkr previously approved these changes Nov 25, 2021
Copy link
Contributor

@vigsterkr vigsterkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🚀

@Panaetius Panaetius merged commit bdf7e11 into master Nov 26, 2021
@Panaetius Panaetius deleted the 2405-pyproject.toml branch November 26, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to pyproject.toml
2 participants